Optimal. Leaf size=119 \[ -\frac{(1-\sin (e+f x)) \cos (e+f x) (c+d \sin (e+f x))^n \left (\frac{c+d \sin (e+f x)}{c+d}\right )^{-n} F_1\left (\frac{3}{2};\frac{5}{2},-n;\frac{5}{2};\frac{1}{2} (1-\sin (e+f x)),\frac{d (1-\sin (e+f x))}{c+d}\right )}{6 \sqrt{2} a^3 f \sqrt{\sin (e+f x)+1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.213685, antiderivative size = 119, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.091, Rules used = {2917, 139, 138} \[ -\frac{(1-\sin (e+f x)) \cos (e+f x) (c+d \sin (e+f x))^n \left (\frac{c+d \sin (e+f x)}{c+d}\right )^{-n} F_1\left (\frac{3}{2};\frac{5}{2},-n;\frac{5}{2};\frac{1}{2} (1-\sin (e+f x)),\frac{d (1-\sin (e+f x))}{c+d}\right )}{6 \sqrt{2} a^3 f \sqrt{\sin (e+f x)+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2917
Rule 139
Rule 138
Rubi steps
\begin{align*} \int \frac{\cos ^2(e+f x) (c+d \sin (e+f x))^n}{(a+a \sin (e+f x))^3} \, dx &=\frac{\cos (e+f x) \operatorname{Subst}\left (\int \frac{\sqrt{1-x} (c+d x)^n}{(1+x)^{5/2}} \, dx,x,\sin (e+f x)\right )}{a^3 f \sqrt{1-\sin (e+f x)} \sqrt{1+\sin (e+f x)}}\\ &=\frac{\left (\cos (e+f x) (c+d \sin (e+f x))^n \left (-\frac{c+d \sin (e+f x)}{-c-d}\right )^{-n}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{1-x} \left (-\frac{c}{-c-d}-\frac{d x}{-c-d}\right )^n}{(1+x)^{5/2}} \, dx,x,\sin (e+f x)\right )}{a^3 f \sqrt{1-\sin (e+f x)} \sqrt{1+\sin (e+f x)}}\\ &=-\frac{F_1\left (\frac{3}{2};\frac{5}{2},-n;\frac{5}{2};\frac{1}{2} (1-\sin (e+f x)),\frac{d (1-\sin (e+f x))}{c+d}\right ) \cos (e+f x) (1-\sin (e+f x)) (c+d \sin (e+f x))^n \left (\frac{c+d \sin (e+f x)}{c+d}\right )^{-n}}{6 \sqrt{2} a^3 f \sqrt{1+\sin (e+f x)}}\\ \end{align*}
Mathematica [F] time = 16.3984, size = 0, normalized size = 0. \[ \int \frac{\cos ^2(e+f x) (c+d \sin (e+f x))^n}{(a+a \sin (e+f x))^3} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.72, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( \cos \left ( fx+e \right ) \right ) ^{2} \left ( c+d\sin \left ( fx+e \right ) \right ) ^{n}}{ \left ( a+a\sin \left ( fx+e \right ) \right ) ^{3}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (d \sin \left (f x + e\right ) + c\right )}^{n} \cos \left (f x + e\right )^{2}}{{\left (a \sin \left (f x + e\right ) + a\right )}^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{{\left (d \sin \left (f x + e\right ) + c\right )}^{n} \cos \left (f x + e\right )^{2}}{3 \, a^{3} \cos \left (f x + e\right )^{2} - 4 \, a^{3} +{\left (a^{3} \cos \left (f x + e\right )^{2} - 4 \, a^{3}\right )} \sin \left (f x + e\right )}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (d \sin \left (f x + e\right ) + c\right )}^{n} \cos \left (f x + e\right )^{2}}{{\left (a \sin \left (f x + e\right ) + a\right )}^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]